#ifndef RECBOX_H
#define RECBOX_H
#include<QJsonArray>
#include <QWidget>
namespace Ui {
class RecBox;
}

class RecBox : public QWidget
{
    Q_OBJECT

public:
    explicit RecBox(QWidget *parent = nullptr);
    ~RecBox();
    //设置item;
    void initRecBoxUI(QJsonArray arry,int row);
private slots:
    void on_btLeft_clicked();

    void on_btRight_clicked();

private:
    void createRecBoxItem(QJsonArray arry);
private:
    Ui::RecBox *ui;
    int row;
    int col;
    int currentIndex;
    int count;
    QJsonArray jsArry;
};

#endif // RECBOX_H
